package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/***
 * 销售明细实体类
 */
@TableName("t_sellInfo")
public class SellInfoBean {
    /**
     * 编号
     */
    @TableId(value = "pk_sellInfoId", type = IdType.AUTO)
    private Integer id;

    /**
     * 销售的商品
     */
    @TableField(exist = false)
    private ProductBean product;

    /**
     * 销售商品编号
     */
    @TableField(value = "fk_productId")
    private String productId;
    /**
     * 成交价
     */
    @TableField(value = "si_sellMoney")
    private Integer sellMoney;
    /**
     * 销售数量
     */
    @TableField(value = "si_num")
    private Integer num;
    /**
     * 所属销售实体
     */
    @TableField(exist = false)
    private SellBean sellBean;
    /**
     * 所属销售实体编号
     */
    @TableField(value = "fk_sellId")
    private Integer sellId;

    public SellInfoBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getSellMoney() {
        return sellMoney;
    }

    public void setSellMoney(Integer sellMoney) {
        this.sellMoney = sellMoney;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public SellBean getSellBean() {
        return sellBean;
    }

    public void setSellBean(SellBean sellBean) {
        this.sellBean = sellBean;
    }

    public Integer getSellId() {
        return sellId;
    }

    public void setSellId(Integer sellId) {
        this.sellId = sellId;
    }

    @Override
    public String toString() {
        return "SellInfoBean{" +
                "id=" + id +
                ", product=" + product +
                ", productId='" + productId + '\'' +
                ", sellMoney=" + sellMoney +
                ", num=" + num +
                ", sellBean=" + sellBean +
                ", sellId=" + sellId +
                '}'+"\n";
    }
}
